package com.web.java0325mybatis.mapper;

import com.web.java0325mybatis.entity.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeeMapper {

    /**
     * 查询所有员工
     * @return
     */
    List<Employee> selectEmployees();

    /**
     * 搜索员工
     * @param employee
     * @return
     */
    List<Employee> searchEmployees(Employee employee);

    /**
     * 更新员工
     * @param employee
     */
    void updateEmployee(Employee employee);

    /**
     * 通过多个id查询员工
     * @param ids
     * @return
     */
    List<Employee> selectEmplyeesByIds(List<Integer> ids);
}
